package com.example.abstractfactory4.factory4;

/**
 * @version 1.0.0
 * @className: RedColourFactory
 * @description: 红色工厂，充当具体工厂
 * @author: zhangjunfa
 * @date: 2022/6/10 14:29
 */
public class RedColourFactory implements ColourFactory {
    /**
     * 红色数字产品
     *
     * @return
     */
    @Override
    public Digit createDigit() {
        return new RedDigit();
    }

    /**
     * 红色字母产品
     *
     * @return
     */
    @Override
    public Letter createLetter() {
        return new RedLetter();
    }

    /**
     * 红色符号产品
     *
     * @return
     */
    @Override
    public Mark createMark() {
        return new RedMark();
    }
}
